﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using OpenSoftStore.Orm;
using OpenSoftStore.Orm.Model;
using System.Linq;
using OpenSoftStore.Orm.View;
using System.Windows.Forms;

namespace OpenSoftStore.BusinessLogic.Common
{
    public class ShopLogic : ABusinessLogic
    {
        private static SpaEntities spa = new SpaEntities();

        #region Methods
        public static void BindShop(ComboBox cmb)
        {
            cmb.DisplayMember = "Name";
            cmb.ValueMember = "Id";
            cmb.DataSource = spa.SelectWhere<T_Shop>("select Id,Name from T_Shop");
        }
        #endregion

    }
}

